package com.cskaoyan.bean.bo.wjjBO;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author wjj
 * @date 2022-12-29 18:33
 * @describe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PromotionTopicUpdateBO {

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;
    private String content;
    private Boolean deleted;
    private Integer[] goods;
    private Integer id;
    private String picUrl;

    @Min(0)
    private BigDecimal price;

    private String readCount;

    private Integer sortOrder;

    @NotEmpty
    @Length(min = 1,max = 20)
    private String subtitle;

    @NotEmpty
    @Length(min = 1,max = 10)
    private String title;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
